package com.qf.lanzhou.shop.api.service.impl;

import com.qf.lanzhou.shop.pojo.entity.User;
import com.qf.lanzhou.shop.api.dao.RegisterMapper;
import com.qf.lanzhou.shop.api.service.RegisterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * @Author jian
 * @Date 2021/1/7 21:05
 * @JDK 1.8
 * @Version 1.0
 */
@Service
public class RegisterServiceimpl implements RegisterService {

    @Autowired
    private RegisterMapper registerMapper;


    @Override
    public User checkusername(String userName) {

        return registerMapper.selectUserName(userName);
    }

    @Override
    public int insert(String userName, String password, String phone, String email, String sex, int age) {
        return registerMapper.insert(userName, password, phone, email, sex, age);
    }
}
